import http from '@/utils/http'

// 获取订单详情
export const getOrderAPI = (id, userId) => {
  return http({
    url: `/member/order/${id}`,
    params: {
      userId
    }
  })
}

// 模拟支付
export const mockPayAPI = (orderId, userId) => {
  return http({
    url: '/member/order/pay',
    method: 'POST',
    data: {
      orderId,
      userId
    }
  })
} 